package com.hogan.basiclibrary.base.baseApi.exception;

/**
 * Created by chenhu on 2017/8/15.
 * 服务器异常(和服务器协议的错误)
 */
public final class ServerApiException extends Exception {
    private final int code;

    private final String errMsg;

    public ServerApiException(int code, String message) {
        super(message);
        this.code = code;
        this.errMsg = message;
    }

    public int getCode() {
        return code;
    }

    public String getErrMsg() {
        return errMsg;
    }

}
